#导包
import requests
import config
#创建接口类
class ContractAPI:
    #初始化
    def __init__(self):
        self.url_upload =config.BASE_URL+"/api/common/upload"
    #合同上传接口
    def upload_contract(self,test_data,token):
        return requests.post(url =self.url_upload,files={"file":test_data},headers={"Authorization":token})